home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / CD-ROM Tools / CDRPlay / Include / button.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-27  |  1.0 KB  |  41 lines

  1. //////////////////////////////////////////////////////////////////////////////
  2. // button.hpp
  3. //
  4. // Jeffry A Worth
  5. // November 10, 1995
  6. //////////////////////////////////////////////////////////////////////////////
  7.  
  8. #ifndef __BUTTON_HPP__
  9. #define __BUTTON_HPP__
  10.  
  11. //////////////////////////////////////////////////////////////////////////////
  12. // INCLUDES
  13. #include <string.h>
  14. #include "aframe:include/gadget.hpp"
  15. #include "aframe:include/rastport.hpp"
  16.  
  17. //////////////////////////////////////////////////////////////////////////////
  18. // Button Class
  19.  
  20. class AFButton : public AFGadget
  21. {
  22. public:
  23.   AFButton();
  24.   ~AFButton();
  25.  
  26.   virtual void DestroyObject();
  27.   virtual char *ObjectType() { return "Button"; };
  28.  
  29.   virtual void Create(char *text, AFWindow* pwindow, AFRect *rect, ULONG id);
  30.  
  31.   struct IntuiText m_IntuiText;
  32.   struct Border m_gborder,m_gborder2;
  33.   struct Border m_sborder,m_sborder2;
  34.   char *m_text;
  35.   WORD m_xyshine[6];
  36.   WORD m_xyshadow[6];
  37. };
  38.  
  39. //////////////////////////////////////////////////////////////////////////////
  40. #endif // __BUTTON_HPP__
  41.